<template>
  <div id="" class="container">
    <header class="header" @click="$router.push('/home')">
      <img src="../../../assets/img/home/logo-2.png" alt="" style="object-fit: fill">
    </header>
    <nav class="navWrapper">
      <div class="leftWrapper">
      </div>
      <div class="rightWrapper">
        <div class="rightNavItem">
          <img src="../../../assets/img/collection/userName.png" alt=""><span>{{this.userName}}</span>
        </div>
        <i class="line"></i>
        <div class="rightNavItem return" @click="clear">退出</div>
      </div>
    </nav>
    <!--    <el-scrollbar style="height: 800px">-->
    <!--      -->
    <!--    </el-scrollbar>-->
    <div class="content">
      <div class="leftContent">
        <div class="statistics">
          <div class="title">林木种质资源种树面积</div>
          <div class="statisticsInfo">
            <div class="echartBtn" @click="echartClose" v-if="echartBtn">返回上级</div>
            <Echart :chartData="echartData.speciesRanking" type="bar" v-if="this.showSpecies"
                    @clickItem="clickItem"></Echart>
            <Corner></Corner>
          </div>
        </div>
        <div class="ranking">
          <div class="title">实时气象</div>
          <div class="rankingInfo" id="ranking" style="height: 455px;">
            <div class="weatherBox">
              <div class="box1">
                <div class="box1-select">
                  <el-select v-model="weatherStationId" @change="selectWeather" placeholder="请选择"
                             style="width: 150px;height: 30px">
                    <el-option
                        v-for="item in stationList"
                        :key="item.value"
                        :label="item.label"
                        :value="item.value">
                    </el-option>
                  </el-select>
                </div>
                <div class="data"><span class="gettime">{{date | formatDateTime}}</span></div>
              </div>
              <el-scrollbar class="page-component_scroll">
                <div class="box2" v-for="(item,i) in weatherStationData">
                  <div class="weather-info" style="width:40%;margin-left: 20px">{{item.display}}</div>
                  <div class="weather-info" style="width:40%">
                    <img :src="imgDataObj[item.unit]" style="margin-top: -3px">
                  </div>
                  <div class="weather-info" style="width:20%">{{item.value}}{{item.unit}}</div>
                </div>
              </el-scrollbar>
            </div>
            <Corner></Corner>
          </div>
        </div>
      </div>
      <div class="mapContent">
        <div class="map">
          <ChinaMap :map-data="mapData" v-if="flag"></ChinaMap>
        </div>
        <div class="ranking">
          <div style="position: relative;background: rgba(24, 32, 45, .2);height: 258px">
            <div class="titel1">林种面积前十排名</div>
            <div class="citys">
              <el-button @click="drawLine()" class="city-name" style="z-index:9999;background-color: transparent;">南宁
              </el-button>
              <el-button @click="drawLine(1)" class="city-name" style="z-index:9999;background-color: transparent;">柳州
              </el-button>
              <el-button @click="drawLine(2)" class="city-name" style="z-index:9999;background-color: transparent;">百色
              </el-button>
            </div>
            <div class="forestbox">
              <div id="forestArea" ref="chart" style="display: flex;width: 100%;height: 250px;margin-top: -20px;"></div>
              <Corner></Corner>
            </div>
          </div>
        </div>
      </div>
      <div class="rightContent">
        <div class="ranking" style="margin-bottom: 10px">
          <div class="title">调查数据统计</div>
          <div class="rankingInfo realTimeWrapper">
            <div class="realTime"><span>实时调查人员 :&nbsp;</span><span>{{this.echartData.realTimeDta.currentAppUser}}</span>
            </div>
            <div class="realTime"><span>调查人员总数 :&nbsp;</span><span>{{this.investigationCount[1]}}</span></div>
            <div class="realTime"><span>油茶样地总数 : </span><span>{{this.investigationCount[3]}}</span></div>
            <div class="realTime"><span>个体调查总数 :&nbsp;</span><span>{{this.investigationCount[5]}}</span></div>
            <Corner></Corner>
          </div>
        </div>
        <div class="statistics" style="margin-bottom: 10px">
          <div class="title">实时调查样本统计</div>
          <div class="statisticsInfo">
            <Echart :chartData="echartData.realTimeDta" type="line" :is-axis-label="true" :is-axis-line="true"
                    v-if="this.showReal"></Echart>
            <Corner></Corner>
          </div>
        </div>
        <div class="analysis" style="margin-bottom: 10px">
          <div class="title">历史调查样本对比</div>
          <div class="analysisInfo">
            <Echart :chartData="echartData.historyData" type="line" :is-show-legend="true" :is-axis-label="true"
                    :is-axis-line="true" v-if="this.showEchart"></Echart>
            <Corner></Corner>
          </div>
        </div>
      </div>
    </div>
  </div>
</template>

<script>
import Corner from '../../../components/corner'
import Echart from '../../../components/Echart'
import ChinaMap from '../../../components/chinaMap'
import {CollectionModel} from '../../../api/collectionApi/collectionModelApi'
import echarts from 'echarts'
import meteorologicalViewApi from '@/api/Intelligence/meteorological/MeteorologicalViewApi'
import weatherApi from '@/api/weatherApi'

let collectionModel = new CollectionModel()
export default {
  name: 'collection',
  components: {
    Corner, Echart, ChinaMap
  },
  data() {
    return {
      echartBtn: false,
      stationList: [],
      imgDataObj: {
        '℃': require('@/assets/img/weather/wendu.png'),
        '%': require('@/assets/img/weather/wendu2.png'),
        '辐射': require('@/assets/img/weather/fushe.png'),
        '°': require('@/assets/img/weather/fengxiang.png'),
        'm/s': require('@/assets/img/weather/fengsu.png'),
        'mm': require('@/assets/img/weather/jianyu.png'),
        'dB': require('@/assets/img/weather/zaoying.png'),
        'klux': require('@/assets/img/weather/zhaodu.png'),
        '个': require('@/assets/img/weather/ziwaixian.png'),
        'PH值': require('@/assets/img/weather/ph.png'),
        'pm2.5': require('@/assets/img/weather/pm2.5.png'),
        '光合': require('@/assets/img/weather/guanghe.png'),
        '土壤湿度': require('@/assets/img/weather/shidu.png'),
        '土壤温度': require('@/assets/img/weather/turan.png'),
        '太阳能': require('@/assets/img/weather/taiyang.png'),
        '日照时数': require('@/assets/img/weather/rizhao.png'),
        '气压': require('@/assets/img/weather/qiya.png'),
        '紫外线': require('@/assets/img/weather/ziwaixian.png'),
        '蒸量': require('@/assets/img/weather/zhenliang.png'),
        '直辐射': require('@/assets/img/weather/zhifushe.png')
      },
      date: new Date(),
      investigationCount: [], // 调查数据统计
      showRanking: false, // 区域排名
      showSpecies: false, // 物种排名
      showHistory: false, // 历史调查
      showReal: false, // 实时数据
      showArea: false, //林种面积
      showEchart: false,
      timer: null,
      timer1: null,
      flag: false,
      mapData: {
        provinceTotalData: [], // 全国各省的数据
        cityTotalData: [], // 全国各市的数据
        countyTotalData: [] // 全国各县的数据
      },
      userName: '',
      statisticsDta: [], // 统计各项总数数据
      weatherStationData: [],
      weatherStationId: '',
      options: [],
      echartData: {
        // 区域排名
        regionRanking: {
          name: '物种数量',
          xData: [],
          series: []
        },
        // 物种排名
        speciesRanking: {
          name: '林木面积(亩)',
          xData: [],
          series: []
        },
        analysisData: {
          legendData: [],
          seriesData: []
        },
        historyData: {
          yName: '',
          name: [],
          xData: [],
          series: []
        },
        realTimeDta: {
          name: '调查人数',
          currentAppUser: 0, // 实时在线调查的人数
          sampleCount: 0, // 样本总数
          xData: [],
          series: []
        },
        forestArea: {
          name: '林种面积',
          xData: [],
          series: []
        }
      }
    }
  },
  created() {
    this.getRegionRanking(1)
    this.getRegionRanking(2)
    this.getRegionRanking(3)
    this.getSpeciesRanking()
    this.getAnalysisData()
    this.getHistoryData()
    this.getStatistics()
    this.getRealTime()
    this.getUserName()
    this.onLine()
    this.getWeatherStationList()
    this.getStation()
    this.geeFindGermplasmCount()
  },
  mounted() {
    this.drawLine()
    let _this = this // 声明一个变量指向Vue实例this，保证作用域一致
    this.timer = setInterval(() => {
      _this.date = new Date() // 修改数据date
    }, 1000)
  },
  filters: {
    formatDateTime(value) {
      let date = new Date(value)
      let y = date.getFullYear()
      let MM = date.getMonth() + 1
      MM = MM < 10 ? '0' + MM : MM
      let d = date.getDate()
      d = d < 10 ? '0' + d : d
      let h = date.getHours()
      h = h < 10 ? '0' + h : h
      let m = date.getMinutes()
      m = m < 10 ? '0' + m : m
      let s = date.getSeconds()
      s = s < 10 ? '0' + s : s
      return y + '-' + MM + '-' + d + ' ' + h + ':' + m + ':' + s
    }
  },
  destroyed() {
    clearInterval(this.timer)
  },
  methods: {
    echartClose() {
      this.getSpeciesRanking()
      this.echartBtn = false
    },
    clickItem(data) {
      if (data === '南宁') {
        this.echartData.speciesRanking.xData = ['林科院', '高峰林场', '良凤江林场', '七坡林场']
        this.echartData.speciesRanking.series = ['1935.0', '1565.0', '1229.6', '1205.1']
        this.echartBtn = true
      }
      if (data === '柳州') {
        this.echartData.speciesRanking.xData = ['林科所', '贝水河林场']
        this.echartData.speciesRanking.series = ['227.1', '59.0']
        this.echartBtn = true
      }
      if (data === '百色') {
        this.echartData.speciesRanking.xData = ['林科所']
        this.echartData.speciesRanking.series = ['227.1']
        this.echartBtn = true
      }
    },
    getStation() {
      weatherApi.getWeatherStationList().then((res) => {
        if (res.data.messageType === '0') {
          var result = res.data.result
          if (result && result.length > 0) {
            for (var i = 0; i < result.length; i++) {
              var obj = {value: '', label: ''}
              obj.value = result[i].id
              obj.label = result[i].name
              this.stationList.push(obj)
            }
          }
        }
      })
    },
    async getWeatherStationList() {
      meteorologicalViewApi.getWeatherStationList().then((res) => {
        if (res.status === 200 && res.data.result !== null) {
          var result = res.data.result
          if (result && result.length > 0) {
            this.weatherStationId = result[0].id
            this.options = result
            this.getWeatherStationData(result[0].id)
          }
        }
      })
    },
    async getWeatherStationData(id) {
      let params = {
        id: id
      }
      meteorologicalViewApi.findRealDataById(params).then((res) => {
        console.log(res)
        if (res.status === 200 && res.data.result !== null) {
          var result = res.data.result
          this.weatherStationData = result.weathers
        }
      })
      this.setTime()
    },
    setTime() {
      if (this.$route.path.indexOf('/bigData') === -1) {
        return
      }
      let self = this
      this.timer = setTimeout(() => {
        self.getWeatherStationData(this.weatherStationId)
      }, 20000)
    },
    // 获取区域排名  前十
    async getRegionRanking(type) {
      /**
       *  type ===1 查省的数据
       *  type ===2 查市的数据
       *  type ===3 查县的数据
       * */
      if (type === 1) {
        let rankingResult = await collectionModel.getFindDistrictByCount({'type': type})
        // console.log(rankingResult)
        if (rankingResult.status === 200 && rankingResult.data.result.length > 10) {
          let xData = rankingResult.data.result.slice(0, 10)
          this.mapData.provinceTotalData = rankingResult.data.result
          // console.log(this.provinceTotalData)
          xData.forEach((item, index) => {
            this.echartData.regionRanking.xData.push(item[0])
            this.echartData.regionRanking.series.push(item[1])
          })
          this.showRanking = true
        } else {
          let xData = rankingResult.data.result
          this.mapData.provinceTotalData = rankingResult.data.result
          this.flag = true
          // console.log(this.provinceTotalData)
          xData.forEach((item, index) => {
            this.echartData.regionRanking.xData.push(item[0])
            this.echartData.regionRanking.series.push(item[1])
          })
          this.showRanking = true
        }
      }
      // 各市的数据
      if (type === 2) {
        let cityResult = await collectionModel.getFindDistrictByCount({'type': type})
        if (cityResult.status === 200 && cityResult.data.result.length > 0) {
          this.mapData.cityTotalData = cityResult.data.result
        }
      }
      // 各县、区的数据
      if (type === 3) {
        let countyResult = await collectionModel.getFindDistrictByCount({'type': type})
        if (countyResult.status === 200 && countyResult.data.result.length > 0) {
          this.mapData.countyTotalData = countyResult.data.result
        }
      }
    },
    // 获取物种排名
    async getSpeciesRanking() {
      let speciesResult = await collectionModel.getFindSpeciesByCount()
      // console.log(speciesResult)
      if (speciesResult.status === 200 && speciesResult.data.result.length > 0) {
        let xData = speciesResult.data.result
        this.echartData.speciesRanking.xData = ['南宁', '柳州', '百色']
        this.echartData.speciesRanking.series = ['4293.2', '1306.6', '3541.5']
        xData.forEach((item, index) => {
          // this.echartData.speciesRanking.xData.push(item[0])
          // this.echartData.speciesRanking.series.push(item[1])
        })
        this.showSpecies = true
      }
    },
    // 获取物种分布分析
    async getAnalysisData() {
      let analysisResult = await collectionModel.getFindSpeciesByLineType()
      // console.log(analysisResult)
      if (analysisResult.status === 200 && analysisResult.data.result.length > 0) {
        let xData = analysisResult.data.result
        xData.forEach((item, index) => {
          this.echartData.analysisData.legendData.push(item[0])
          let obj = {
            value: '',
            name: ''
          }
          obj.value = item[1]
          obj.name = item[0]
          this.echartData.analysisData.seriesData.push(obj)
        })
      }
    },
    // 获取历史调查数据
    async getHistoryData() {
      let historyResult = await collectionModel.findGermplasmDataByYear()
      // console.log(historyResult)
      if (historyResult.status === 200 && historyResult.data.result.length > 0) {
        let xData = historyResult.data.result
        this.echartData.historyData.xData = ['一月', '二月', '三月', '四月', '五月', '六月', '七月', '八月', '九月', '十月', '十一月', '十二月']
        let name = []
        xData.forEach((item, index) => {
          let historyArr = []
          name.push(item[0] + ' ( 数量 )')
          for (let i = 1; i < item.length; i++) {
            historyArr.push(item[i])
          }
          this.echartData.historyData.series.push(historyArr)
        })
        this.echartData.historyData.name.push(name)
      }
      this.showEchart = true
    },
    // 获取统计各项总数
    async getStatistics() {
      let statisticsResult = await collectionModel.getFindCount()
      // console.log(rankingResult)
      if (statisticsResult.status === 200 && statisticsResult.data.result.length > 0) {
        this.statisticsDta = statisticsResult.data.result[0]
        // console.log(this.statisticsDta)
      }
    },
    // 获取实时调查数据
    async getRealTime() {
      this.echartData.realTimeDta.sampleCount = 0
      this.echartData.realTimeDta.xData = []
      this.echartData.realTimeDta.series = []
      let timeResult = await collectionModel.findGermplasmCurrentDataByNow()
      if (timeResult.status === 200 && timeResult.data.result.length > 0) {
        let timeData = timeResult.data.result
        this.echartData.realTimeDta.currentAppUser = timeData[0].currentAppUser
        timeData.forEach((item) => {
          if (item instanceof Array) {
            for (let i = 0; i < item.length; i = i + 2) {
              this.echartData.realTimeDta.sampleCount += Number(item[i + 1])
              this.echartData.realTimeDta.xData.push(item[i] + '点')
              this.echartData.realTimeDta.series.push(item[i + 1])
            }
          }
        })
        this.showReal = true
      }
    },
    // 获取大数据调查统计数据
    async geeFindGermplasmCount() {
      let germplasmResult = await collectionModel.findGermplasmCount()
      // console.log(germplasmResult)
      if (germplasmResult.status === 200 && germplasmResult.data.result !== null) {
        this.investigationCount = germplasmResult.data.result[0]
        console.log(this.investigationCount)
      }
    },
    drawLine(type) {
      let dataTitle = []
      let data = []
      if (type === 1) {
        dataTitle = ['经济适用树区', '速生用材树种', '珍贵用才树种', '楠木专园', '杉木', '竹藤区', '香合欢', '青檀', '楠木专园', '相思']
        data = ['489.2', '410', '324.9', '307', '166', '108.3', '102.6', '71.7', '65', '16']
      } else if (type === 2) {
        dataTitle = ['经济适用树区', '速生用材树种', '珍贵用才树种', '竹藤区', '观赏树种区', '桉', '松', '青檀', '大叶烁', '红椿']
        data = ['489.2', '410', '324.9', '207.3', '176.6', '134', '108.3', '102.6', '71.7', '50.5']
      } else {
        dataTitle = ['经济适用树区', '速生用材树种', '珍贵用才树种', '竹藤区', '桉', '观赏树种区', '松', '青檀', '大叶烁', '枫香']
        data = ['489.2', '410', '324.9', '207.3', '176.6', '134', '108.3', '102.6', '71.7', '70.5']
      }
      console.log('aaaaa')
      // 林种面积前十统计
      let forestArea = this.$refs.chart
      // 绘制图表
      if (forestArea) {
        let myChart = this.$echarts.init(forestArea)
        window.onresize = myChart.resize;
        myChart.setOption({
          tooltip: {
            trigger: 'axis',
            axisPointer: {
              type: 'shadow'
            },
          },
          legend: {
            x: '75%',
            y: '0%',
          },
          toolbox: {
            show: true,
            orient: 'vertical',
            left: 'right',
            top: 'center'
          },
          dataset: [{
            source: this.speciesTopList
          }],
          calculable: true,
          xAxis: {
            type: 'category', axisTick: {
              show: false
            },
            data: dataTitle,
            splitLine: {
              show: false
            },
            axisLabel: {
              interval: 0,
              rotate: 25
            },
            axisLine: {
              show: true,
              lineStyle: {
                type: 'solid',
                color: '#fff', //左边线的颜色
                width: '1' //坐标线的宽度
              }
            }
          },
          yAxis: {
            type: 'value',
            splitLine: {
              show: true,
              lineStyle: {
                color: '#6076AD',// 修改网格线颜色
                offset: 0.3
              }
            },
            axisTick: { //y轴刻度线
              show: false
            },
            axisLine: {
              show: false,
              lineStyle: {
                type: 'solid',
                color: '#07cdd1', //左边线的颜色
                width: '1' //坐标线的宽度
              }
            },
            axisLabel: {
              formatter: '{value}',
              textStyle: {
                color: '#fff'
              }
            }
          },
          series: [
            {
              type: 'bar',
              data: data,
              barGap: 0,
              itemStyle: {
                normal: {
                  color: "gray",
                }
              },
              barWidth: '20',
              itemStyle: {
                normal: {
                  color: new echarts.graphic.LinearGradient(0, 1, 0, 0, [{
                    offset: 0,
                    color: '#3488DB' // 0% 处的颜色
                  }, {
                    offset: 0.6,
                    color: '#00F5FF' // 60% 处的颜色
                  }], false),
                  barBorderRadius: 3  //柱状角成椭圆形
                }
              }
            }
          ]
        })
      }
    },
    // 获取用户名称
    getUserName() {
      let user = JSON.parse(localStorage.getItem('user'))
      this.userName = user.userName
    },
    // 退出
    clear() {
      window.localStorage.clear()
      this.$router.push({path: '/'})
    },
    onLine() {
      this.timer = setInterval(this.getRealTime, 10000)
    },
    selectWeather() {
      clearTimeout(this.timer)
      this.timer = null
      let stationId = this.weatherStationId
      this.getWeatherStationData(stationId)
    },
  }
}
</script>

<style lang="less" scoped>
  .container {
    overflow: hidden;
    /*background-image: url("../../../assets/img/header/tuceng.png");*/
    background-image: url("../../../assets/img/home/daohang2.png");
    background-repeat: no-repeat;
    background-size: cover;
    height: 100vh;
    min-width: 1306px;
  }

  a {
    text-decoration: none;
  }

  /deep/ .el-scrollbar__wrap {
    overflow-x: hidden;
  }

  /deep/ .el-select {
    height: 30px;
  }

  /deep/ .el-input--suffix .el-input__inner {
    background-color: transparent;
    border: 0;
    margin-top: -5px;
  }

  .forestbox {
    display: flex;
    width: 100%;
    height: 210px;
  }

  .weatherBox {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 440px;
    margin-top: 15px;
    overflow: hidden;
  }

  .box1 {
    display: flex;
    flex-direction: row;
    width: 90%;
    height: 40px;
    background-color: rgba(239, 239, 239, 0.1);
    border-radius: 3px;
    margin-top: 10px;
    margin-left: 5%;
  }

  .box1-select {
    z-index: 99999;
    width: 150px;
    height: 28px;
    border: 1px solid #00ffff;
    margin: 3.5px 0 0 10px;
  }

  .data {
    /*margin: 13px 0 0 70px;*/
    width: 100%;
    margin-top: 13px;
    margin-right: 5px;
  }

  .gettime {
    display: inline-block;
    width: 100%;
    text-align: right;
    font-size: 14px;
    font-family: 'Source Han Sans CN';
    font-weight: 400;
    color: rgba(14, 252, 255, 1);
  }

  .box2 {
    display: flex;
    flex-direction: row;
    width: 90%;
    height: 35px;
    background-color: rgba(239, 239, 239, 0.1);
    border-radius: 3px;
    margin-top: 15px;
    margin-left: 5%;
  }

  .box2:hover {
    background: linear-gradient(0deg, rgba(77, 227, 208, 0.3) 0%);
  }

  .weather-info {
    z-index: 100;
    font-size: 14px;
    margin-top: 10px;
    color: #fff;
  }

  .citys {
    display: flex;
    display: -webkit-flex;
    flex-direction: row;
    align-items: center;
    margin: -29px 0 0 60%;
  }

  .city-name {
    width: 65px;
    height: 27px;
    border: 1px solid #00ffff;
    color: #00e6e6;
    text-align: center;
    padding-top: 5px;
    margin-left: 15px;
  }

  .city-name:hover {
    background: rgba(0, 0, 0, 0) url(../../../assets/img/btn.png) no-repeat scroll 50% 50% / cover;
    border: 1px solid #00ffff;
  }


  /*.header{*/
  /*  width:100%;*/
  /*  height: 113px;*/
  /*  .img{*/
  /*    height: 113px;*/
  /*  }*/
  /*}*/
  .header {
    cursor: pointer;
    width: 100%;
    /*width: 1920px;*/
    height: 110px;
    background-size: 100% 110px;
    text-align: center;
    position: absolute;

    img {
      min-width: 1306px;
      width: 100%;
    }

    /*.img{*/
    /*  cursor: pointer;*/
    /*  position: relative;*/
    /*  top: 50%;*/
    /*  transform: translateY(-50%);*/
    /*  display: inline-block;*/
    /*  height: 66px;*/
    /*  width: 30%;*/
    /*  img{*/
    /*    height: 100%;*/
    /*    width: 100%;*/
    /*  }*/
    /*}*/
  }

  .navWrapper {
    position: relative;
    z-index: 999;
    width: 100%;
    /*background-color: red;*/
    margin-top: 115px;
    display: inline-flex;
    justify-content: space-between;
    padding: 0 1%;
    height: 40px;
    line-height: 40px;

    /*.leftWrapper, .rightWrapper {*/
    /*  width: 28%;*/
    /*}*/

    .leftWrapper {
      display: inline-flex;
      justify-content: space-between;
      align-items: center;
      /*background-color: palegreen;*/
    }

    .rightWrapper {
      /*background-color: #5daf34;*/
      display: inline-flex;
      position: absolute;
      top: 0px;
      right: 20%;
      align-items: center;

      .rightNavItem {
        cursor: pointer;
        text-align: center;
        font-size: 1.8rem;
        color: rgba(0, 252, 255, 1);
        font-weight: 400;

        img {
          vertical-align: middle;
        }

        span {
          vertical-align: middle;
          margin-left: 5px;
        }
      }

      /*.rightNavItem{*/
      /*  cursor: pointer;*/
      /*  height: 48px;*/
      /*  display: inline-block;*/
      /*  !*float: left;*!*/
      /*  text-align: center;*/
      /*  width: 15%;*/
      /*  font-size:18px;*/
      /*  font-weight:400;*/
      /*  color:rgba(0,252,255,1);*/
      /*  !*background-color: pink;*!*/
      /*}*/
      /*.return{*/
      /*  text-align: left;*/
      /*  margin-left: 2%;*/
      /*}*/
      /*img{*/
      /*  vertical-align: sub;*/
      /*  margin-right: 5%;*/
      /*}*/

      .line {
        display: inline-block;
        margin: 0 10px;
        height: 21px;
        width: 1px;
        background: rgba(0, 255, 255, 1);
        /*margin: 0 10px;*/
        vertical-align: middle;
      }
    }
  }

  .content {
    display: inline-flex;
    width: 100%;
    padding: 0 1.5%;
    box-sizing: border-box;

    & /deep/ .el-scrollbar__wrap {
      /* overflow: scroll; */
      overflow-y: auto;
      overflow-x: hidden;
      height: 100%;
    }

    .mapContent {
      margin-left: 1%;
      margin-right: 1%;
      margin-top: 50px;
      box-sizing: border-box;
      width: 47%;
      height: calc(100vh - 180px);
      /*background-color: #5daf34;*/

      .map {
        width: 95%;
        margin-left: 2.5%;
        margin-right: 2.5%;
        /*background-color: orchid;*/
        height: 470px;
      }

      .list {
        margin-top: 20px;
        width: 100%;
        height: 243px;
        /*background-color: orange;*/
        position: relative;
        /*border: 1px solid rgba(0, 245, 255, .3);*/
        background: rgba(24, 32, 45, .2);
        display: inline-flex;
        justify-content: center;

        .listItem {
          .listItemImg {
            /*height: 77px;*/
            margin-right: 10px;
            width: 77px;

            img {
              height: 100%;
            }
          }

          /*background-color: red;*/
          cursor: pointer;
          display: flex;
          justify-content: center;
          align-items: center;
          width: 25%;
          box-sizing: border-box;
          color: #00F6FF;
          font-size: 16px;

          .text {
            display: flex;
            flex-direction: column;
          }

          .infoText {
            margin-top: 5px;
          }

          .number {
            font-size: 20px;
            font-weight: 400;
          }

          img {
            margin-right: 3%;
          }
        }
      }
    }

    .leftContent, .rightContent {
      display: flex;
      flex-direction: column;
      box-sizing: border-box;
      width: 25.5%;
      height: calc(100vh - 180px);
      /*background-color: rebeccapurple;*/
    }

    .title {
      /*margin-top: 10px;*/
      margin-bottom: 10px;
      height: 35px;
      line-height: 35px;
      background-image: url('../../../assets/img/collection/juxing.png');
      background-repeat: no-repeat;
      background-size: contain;
      text-indent: 30px;
      font-size: 17px;
      font-weight: 400;
      color: rgba(0, 255, 255, 1);
    }

    .porise {
      height: 35px;
      line-height: 35px;
      background-image: url('../../../assets/img/collection/juxing.png');
      background-repeat: no-repeat;
      background-size: contain;
      font-size: 17px;
      font-weight: 400;
      color: rgba(0, 255, 255, 1);
    }

    .titel1 {
      height: 35px;
      line-height: 35px;
      background-image: url('../../../assets/img/collection/juxing.png');
      background-repeat: no-repeat;
      background-size: contain;
      text-indent: 30px;
      font-size: 17px;
      font-weight: 400;
      color: rgba(0, 255, 255, 1);
    }

    .leftContent {

    }

    .ranking {
      height: 273px;
      width: 100%;

      .realTimeWrapper {
        box-sizing: border-box;
        padding: 3.5% 10%;

        .realTime {
          /*margin-top: 10%;*/
          font-size: 2rem;
          margin-bottom: 8%;

          &:nth-of-type(odd) {
            color: #57F8D6;
          }

          &:nth-of-type(even) {
            color: #00FF4B;
          }
        }
      }

      .rankingInfo {
        height: calc(273px - 63px);
        position: relative;
        /*border: 1px solid rgba(0, 245, 255, .3);*/
        background: rgba(24, 32, 45, .2);
      }
    }

    .statistics {
      width: 100%;
      height: 273px;
      /*background-color: #1f74bf;*/

      .statisticsInfo {
        height: calc(273px - 63px);
        position: relative;
        /*border: 1px solid rgba(0, 245, 255, .3);*/
        background: rgba(24, 32, 45, .2);
      }
    }

    .analysis {
      width: 100%;
      height: 250px;
      /*background-color: orchid;*/

      .analysisInfo {
        height: calc(250px - 53px);
        position: relative;
        /*border: 1px solid rgba(0, 245, 255, .3);*/
        background: rgba(24, 32, 45, .2);
      }
    }
  }

  .echartBtn {

    z-index: 9999;
    position: absolute;
    top: 5px;
    left: 5px;
    cursor: pointer;
    border: none;
    padding: 5px;
    font-size: 14px;
    font-weight: 400;
    background: rgba(14, 107, 183, 0.9);
    border-radius: 5px;
    color: #00ffff;
  }
</style>
